<?php

// +----------------------------------------------------------------------
// | yogurt
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Author: fengyi <1719847255.qq.com>
// +----------------------------------------------------------------------

return [
    'driver' => 'file', //默认驱动，默认使用file，支持file，memcache，redis
    'prefix' => 'PHPSESSIONID', //名称前缀
    'domain' => '', //有效域名
    'expire' => 1440, // 默认session过期时间
    'file' => [
        'path' => RUNTIME_PATH . '/session', //文件类session保存路径
    ],
    'memcache' => [
        'host' => '127.0.0.1',
        'port' => 11211,
    ],
    'redis' => [
        'host' => '127.0.0.1',
        'port' => 6379,
        'password' => '',
        'database' => 0,
    ],
];